package org.freedom.imarket.controller;

import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig.Feature;
import org.codehaus.jackson.type.JavaType;
import org.codehaus.jackson.type.TypeReference;

public class MyObjectMapper extends ObjectMapper {


	@Override
	public ObjectMapper configure(Feature f, boolean state) {
		System.out.println("MyObjectMapper.configure()");
		return super.configure(f, state);
	}

	@Override
	public ObjectMapper configure(
			org.codehaus.jackson.map.DeserializationConfig.Feature f,
			boolean state) {
		System.out.println("MyObjectMapper.configure()");
		return super.configure(f, state);
	}

	@Override
	public ObjectMapper configure(org.codehaus.jackson.JsonParser.Feature f,
			boolean state) {
		System.out.println("MyObjectMapper.configure()");
		return super.configure(f, state);
	}

	@Override
	public ObjectMapper configure(org.codehaus.jackson.JsonGenerator.Feature f,
			boolean state) {
		System.out.println("MyObjectMapper.configure()");
		return super.configure(f, state);
	}

	@Override
	public <T> T convertValue(Object fromValue, Class<T> toValueType)
			throws IllegalArgumentException {
		System.out.println("MyObjectMapper.convertValue()");
		return super.convertValue(fromValue, toValueType);
	}

	@Override
	public <T> T convertValue(Object fromValue, TypeReference toValueTypeRef)
			throws IllegalArgumentException {
		System.out.println("MyObjectMapper.convertValue()");
		return super.convertValue(fromValue, toValueTypeRef);
	}

	@Override
	public <T> T convertValue(Object fromValue, JavaType toValueType)
			throws IllegalArgumentException {
		System.out.println("MyObjectMapper.convertValue()");
		return super.convertValue(fromValue, toValueType);
	}

}
